<template>
	<a-config-provider :locale="zh_CN">
		  <!-- <div id="app" v-wechat-title="$route.meta[0].title">
			<router-view></router-view>
		  </div> -->
		   <div id="app">
       <keep-alive>
    
      	<router-view v-if="$route.meta.keepAlive"></router-view>
       </keep-alive>
        <router-view v-if="!$route.meta.keepAlive"></router-view>
    </div>
	 </a-config-provider>
</template>

<script>
import zh_CN from 'ant-design-vue/lib/locale-provider/zh_CN';
import moment from 'moment';
import 'moment/locale/zh-cn';

moment.locale('zh-cn');
export default {
  name: 'app',
  data() {
        return {
          zh_CN,
        };
      },
      mounted() {  
    this.$refs.app.addEventListener('click', () => {  
      this.$emit('request-enter-full-screen'); // 当用户点击时触发 'request-enter-full-screen' 事件  
    });  
  }

}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
}
.icon {
width: 1em; height: 1em;
vertical-align: -0.15em;
fill: currentColor;
overflow: hidden;
}
</style>
